package com.foyekoo.project001.config;

import android.content.IntentFilter;

/**
 * 指令集和广播
 * Created by Administrator on 2016/7/28.
 */
public class Config {
    //检测到有usb_Hose设备连接的广播标志
    public static String ACTION_USB_DEVICE = "android.hardware.usb.action.USB_DEVICE_DETACHED";
    //usb_Hose设备连接断开标志
    public static String ACTION_USB_UNCONNECT = "usb_unconnect";
    //usb_Hose设备连接成功标志
    public static String ACTION_USB_CONNECT = "usb_connect";
    //usb_Hose设备拥有访问权限标志
    public static String ACTION_USB_PERMISSION = "action_usb_permission";
    //usb_Hose设备未拥有访问权限标志
    public static String ACTION_USB_UNPERMISSION = "action_usb_unpermission";
    //usb_Hose设备名称标志
    public static String ACTION_USB_NAME = "action_usb_name";
    //usb_Hose设备接口数标志
    public static String ACTION_USB_PORT = "action_usb_port";
    public static IntentFilter getFilter() {
        IntentFilter filter = new IntentFilter();
        filter.addAction(ACTION_USB_DEVICE);
        filter.addAction(ACTION_USB_CONNECT);
        filter.addAction(ACTION_USB_UNCONNECT);
        filter.addAction(ACTION_USB_PERMISSION);
        filter.addAction(ACTION_USB_UNPERMISSION);
        filter.addAction(ACTION_USB_NAME);
        filter.addAction(ACTION_USB_PORT);
        return filter;
    }
}
